package com.hzqy.web.ac;

import com.hzqy.commons.service.IntegralService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
@RequestMapping("/integral")
public class IntegralAction {
    @Resource
    private IntegralService integralService;

    @RequestMapping("/getIntegral")
    @ResponseBody
    public Object getIntegralByServerId(String serverid){
        return integralService.getIntegral(serverid);
    }

}
